'''
''' Handle the MyControl_Init method and set the pagination size programmatically.
'''
Protected Sub MyControl_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Init
If Not Me.Page.IsPostBack() Then
' Set the new pagination size for the table
Me.PageSize = 20
End If
End Sub
|